package com.young.springdemo.service.adapter;

public class PoliceCarAdapter extends PoliceCarController {
    private PoliceAlarm policeAlarm;
    private PoliceLamp policeLamp;

    public PoliceCarAdapter() {
        this.policeAlarm = new PoliceAlarm();
        this.policeLamp = new PoliceLamp();
    }

    @Override
    public void alarm() {
        policeAlarm.alarm();
    }

    @Override
    public void light() {
        policeLamp.light();
    }
}
